import request from '@/utils/request'

// 展品报名列表
export function goodList(query) {
    return request({
        url: '/h5/apply/goodList',
        method: 'get',
        params: query
    })
}
// 新增展品报名
export function addGood(data) {
    return request({
        url: '/h5/apply/addGood',
        method: 'post',
        data: data
    })
}

// 展品报名详情
export function goodInfo(goodsId) {
    return request({
        url: '/h5/apply/goodInfo/' + goodsId,
        method: 'get'
    })
}

// 修改展品
export function editGood(data) {
    return request({
        url: '/h5/apply/editGood',
        method: 'put',
        data: data
    })
}

// 删除
export function removeGood(goodsId) {
    return request({
        url: '/h5/apply/removeGood/' + goodsId,
        method: 'delete'
    })
}